<?php
	require_once 'class/config_database.php';
	require_once 'class/order.php';
	$order_dao = new Order_Dao($host,$user,$pass,$dbnm);

	//Proses membentuk objek order
	$order	   = new Order();
	$order->id_order    = "NULL";
	$order->id_pengguna = $_SESSION["Id_pengguna"];
	$order->id_kamar    = $_POST["id_kamar"];
	$order->date_order	= $_POST["date"];
	$order->note        = $_POST["note"];
	$order->answer      = $_POST["status"];
	$order->note_answer = "NULL";
	$order_dao->add($order);
?>